using System.Collections.Generic;
using Newtonsoft.Json.Linq;
using Daemon.Data.Substructure.Interface;
using Daemon.Model;

namespace Daemon.Data.Infrastructure.Auth
{
	public interface IAuthInfo
	{
		JObject AuthorizationTree { get; }

		bool IsAdmin { get; set; }

		int UserId { get; set; }

		string UserName { get; set; }

		BaseAuthUser UserEntity { get; set; }

		bool IsAuthorizedFor(string permission, string operation);
	}
}
